//
//  main.m
//  02-Fraction
//
//  Created by mafeng on 16/7/6.
//  Copyright © 2016年 mafeng. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Fraction.h"
int main(int argc, const char * argv[]) {
    @autoreleasepool {
        Fraction *fraction1 = [Fraction fractionWithnumberator:1 denominator:2];
        Fraction *fraction2 = [Fraction fractionWithnumberator:6 denominator:4];
        Fraction *fraction3 = [fraction1 multiplyfraction:fraction2];
        Fraction *fraction4 = [fraction1 addfraction:fraction2];
        Fraction *fraction5 = [fraction2 reductfraction];
        
        NSLog(@"相乘之后的数是%@", fraction3);
        NSLog(@"相加之后的数是%@", fraction4);
        NSLog(@"约分之后的数是:%@", fraction5);
    }
    return 0;
}
